<template>
  <div>
    <div class="div_address_box">
      <img src="../assets/大于号 (1)(1).png" width="30px"  @click="add_add_img"/>
      <p>新增地址</p>
      <span></span>
    </div>
    <van-address-edit
      show-postal
      show-delete
      show-set-default
      show-search-result
    >
    
    </van-address-edit>
  </div>
</template>
<script>

export default {
    
  data() {
    return {
        areaList:[],
      searchResult: [],
    };
  },
  methods: {
    onSave() {
      Toast("save");
    },
    onDelete() {
      Toast("delete");
    },
    onChangeDetail(val) {
      if (val) {
        this.searchResult = [
          {
            name: "黄龙万科中心",
            address: "杭州市西湖区",
          },
        ];
      } else {
        this.searchResult = [];
      }
    },
    add_add_img(){
        window.history.back()
    }
  },
};
</script>
<style lang="scss">
.div_address_box {
  width: 100%;
  height: 1rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
</style>